import http from '@/http'

// 根据活动名称分页查询 /flash/list
export const getFlashListApi = (params: IFlashParams): RES<IGetFlash> => http.get(`/flash/list`, { params })

// 修改上下线状态 /update/status/{id}
export const setUpdateStatusApi = (id: number, status: number): RES<number> => http.post(`/flash/update/status/${id}?status=${status}`)

// 获取全部场次 
export const getFlashSessionApi = ():RES<IFlashSession[]> => http.get('/flashSession/list')

// 添加场次 
export const addFlashSession = (promotionSession:IFlashSession)=>http.post('/flashSession/create',promotionSession)
